<?php include_once("../../../common/common_setting_unit.php");         // 引入通用的设置文件 ?>
<?php include_once(ROOT_PATH_ . "/controller/common/module/head.php"); // 引入通用的头部 ?>
<?php include_once("../controller/setting.php");                     // 当前页面的控制器 ?>



<body>

<!--顶部栏-->
<div id="topbar"> <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?></div>

<!--容器-->
<div id="container" class="<? echo $now_extender ?>">


    <!--侧边栏-->
    <div id="sidebar"><?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?></div>





    <?
    //==============================================================================
    //这里开始才是平常开发需要注重的部分，其余的基本不用理会
    //==============================================================================
    ?>

<div id="content" class="layui-form">
    <?php $page_title='板块设置';?>
    <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>






    <div class="detail-box setting">

        <div class="detail-boxes">
            <form id="edit-member-form" method="post"
                  action="setting_edit_process.php?<? echo $data['url_parameter'] ?>"
                  enctype="multipart/form-data" class="layui-form detail-boxing">


                <div class="layui-form-item">
                    <label class="layui-form-label">侧边栏显示</label>
                    <div class="layui-input-block" >
                        <input type="radio" name="ai_sidebar_show"  value="显示"       title="显示"      <? if($_plate['setting']['sidebar_show']=="显示")      {echo "checked";} ?>>
                        <input type="radio" name="ai_sidebar_show"  value="隐藏"       title="隐藏"      <? if($_plate['setting']['sidebar_show']=="隐藏")      {echo "checked";} ?>>
                        <div class="notice">控制是否在侧边栏显示</div>
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">内容类型</label>
                    <div class="layui-input-block">
                        <input type="text" name="ai_content_tag"   autocomplete="off" class="layui-input"
                               value="<?echo $setting[$_plate['id']]['content_tag']?>">
                        <div class="notice"> 每个标签请以分号分开,中英文分号均可。</div>
                    </div>
                </div>



                <div class="layui-form-item">
                    <label class="layui-form-label">婚庆标签</label>
                    <div class="layui-input-block">
                        <input type="text" name="ai_wedding_tag"   autocomplete="off" class="layui-input"
                               value="<?echo $setting[$_plate['id']]['wedding_tag']?>">
                        <div class="notice"> 每个标签请以分号分开,中英文分号均可。</div>
                    </div>
                </div>


                <div class="layui-form-item">
                    <label class="layui-form-label">关键词</label>
                    <div class="layui-input-block">
                        <textarea type="text" name="ai_wedding_keyword"   autocomplete="off"
                                  class="layui-input" style="height: 300px"><?echo $setting[$_plate['id']]['wedding_keyword']?></textarea>
                        <div class="notice"> 每个标签请以分号分开,中英文分号均可。</div>
                    </div>
                </div>





                <div class="layui-form-item">
                    <label class="layui-form-label">每页显示数据</label>
                    <div class="layui-input-block">
                        <input type="text" name="ai_quantity_per_page"   autocomplete="off" class="layui-input" value="<?echo $setting[$_plate['id']]['quantity_per_page']?>">
                        <div class="notice">设置当前板块列表页面，每页显示数据数量</div>
                    </div>
                </div>





                <input type="hidden" name="nid" value="<? echo $setting[$_plate['id']]['nid']?>">
                <input name="now_extender"  type="hidden"  value="<? echo $_REQUEST['now_extender'] ?>"/>


                <div class="function">
                        <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>

                </div>



            </form>
        </div>
    </div>





</div>
    <!--content端點01-->
    <?
    //==============================================================================
    //这里上面才是平常开发需要注重的部分，下面的基本不用理会，只有底部JS部分需要根据实际情况去加载
    //==============================================================================
    ?>





    <br class="clearfloat"/>
    <!--container-->
</div>




<!--底部栏-->
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>



</body>
</html>
